package Client;

import java.io.Serializable;

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author 김기민
 */
public class Customer implements Serializable {

    private static final long serialVersionUID = 1L;
    
    private String Insurunce_Id;
    private String hashSHA256;
    private String Name;
    private String Gender;
    private int Age;
    private String E_mail;
    private int Insurunce_Type;
    
    
    public Customer(){};

    public Customer(String Insurunce_Id, String password, String Name, String Gender, int Age, String E_mail, int Insurunce_Type) {
        this.Insurunce_Id = Insurunce_Id;
        this.hashSHA256 = SecureHash.hashSHA256(password);
        this.Name = Name;
        this.Gender = Gender;
        this.Age = Age;
        this.E_mail = E_mail;
        this.Insurunce_Type = Insurunce_Type;
    }

    public void setInsurunce_Id(String Insurunce_Id) {
        this.Insurunce_Id = Insurunce_Id;
    }

    public void setPassword(String password) {
        this.hashSHA256 = SecureHash.hashSHA256(password);
    }

    public void setName(String Name) {
        this.Name = Name;
    }

    public void setGender(String Gender) {
        this.Gender = Gender;
    }

    public void setAge(int Age) {
        this.Age = Age;
    }

    public void setE_mail(String E_mail) {
        this.E_mail = E_mail;
    }

    public void setInsurunce_Type(int Insurunce_Type) {
        this.Insurunce_Type = Insurunce_Type;
    }

    public String getInsurunce_Id() {
        return Insurunce_Id;
    }

    public String getHashSHA256() {
        return hashSHA256;
    }

    public String getName() {
        return Name;
    }

    public String getGender() {
        return Gender;
    }

    public int getAge() {
        return Age;
    }

    public String getE_mail() {
        return E_mail;
    }

    public int getInsurunce_Type() {
        return Insurunce_Type;
    }
}
